<include file="Companycontrol:header" />
<div class="ms-box" style="display:none;" id="layer4"> <i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
  <div class="ms-b1">
    <h2 class="btitle">温馨提示：<br />您确定要暂停这个岗位吗？<br />暂停后，该岗位将不再显示！</h2>
  </div>
  <h3><a href="javascript:" class="page-btn ok">暂停</a></h3>
  <h3><a href="javascript:" class="page-btn pink concell">取消</a></h3>
</div>
<div class="warp"> <a href="{:U('Companycontrol/hiring_add')}" class="serch-btn">新增职位</a>
	<div style="margin:10px 80px;">您还可以刷新职位 <font color="red">{$menu.refresh}</font> 次 </div>
  <volist name="hiring_list" id="hl">
  <div class="zwlist">
    <a href="{:U('Companycontrol/hiring_show',array('hiring_id'=>$hl['hiring_id']))}"><h1 class="title">{$hl.title}</h1></a>
    <ul class="zwlist-ico">
      <li>
        <h5><a href="{:U('Companycontrol/resume_list',array('hiring_id'=>$hl['hiring_id']))}">{$hl.resume_count}</a></h5>
        <h6>简历量</h6>
      </li>
      <li>
        <h5><a href="javascript:">{$hl.check}</a></h5>
        <h6>查看人数</h6>
      </li>
    </ul>
    <div class="shaxin"><img alt="" src="__ROOT__/weixin_statics/images/shuaxin-blue.png">{$hl.updateline|date='Y-m-d H:i:s',###}</div>
    <div class="jlpeev-bottm zwlist-bottm">
		<i class="ico"><a href="javascript:" data-index="{$hl.hiring_id}" class="hiring_refresh"><img width="" alt="" src="__ROOT__/weixin_statics/images/shuaxin.png"></a></i>
		<i class="ico"><a href="{:U('Companycontrol/hiring_edit',array('hiring_id'=>$hl['hiring_id']))}"><img alt="" src="__ROOT__/weixin_statics/images/edit.png"></a></i>
		<i class="ico"><a href="javascript:" id="yy4" data-index="{$hl.hiring_id}" class="hiring_del"><img src="__ROOT__/weixin_statics/images/del.png" alt=""></a></i> 
	</div>
  </div>
  <br />
  </volist>
</div>
<script>
	$(document).ready(function(){
		$(".hiring_refresh").click(function(){
			var refresh = "{$menu.refresh}";
			if(refresh == 0){
				alert('您刷新次数已经用完啦！');
				return false;
			}
			hiring_id = $(this).attr('data-index');
			$.post('__URL__/hiring_refresh',{hiring_id:hiring_id},function(res){
				alert(res.info);
				if(res.status){
					location.reload();
				}
			},'json');
		});
		$(".hiring_del").click(function(){
			hiring_id = $(this).attr('data-index');
			$.post('__URL__/hiring_del',{hiring_id:hiring_id},function(res){
				alert(res.info);
				if(res.status){
					location.reload();
				}
			},'json');
		});
	});
</script>
<include file="Companycontrol:footer" />